/**
 * Created by weihuajiang on 2017/6/30.
 */
public class User implements Comparable {

    private Long userId;
    private String age;

    public User() {
    }

    public User(Long userId, String age) {
        this.userId = userId;
        this.age = age;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    @Override
    public int compareTo(Object o) {
        User user = (User) o;
        if (((User) o).getUserId() == this.userId) {
            return 1;
        }
        return 0;
    }
}
